﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace mscook.core.domain
{
    public class BonusOrderMap:ClassMap<BonusOrder>
    {
        public BonusOrderMap()
        {
            Id(o => o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);
            Map(o => o.OrederNumber).Not.Nullable().Unique();
            Map(o=>o.Price).Not.Nullable();
            Map(o=>o.Bonus).Not.Nullable();
            Map(o=>o.OrderStatus).Not.Nullable();
            Map(o => o.TelPhone).Not.Nullable() ;
            References<LoginUser>(o => o.LoginUser).Not.Nullable();
        }
    }
}
